﻿using Abp.IdentityServer4;
using Abp.Zero.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Camc.Duct.Authorization.Roles;
using Camc.Duct.Authorization.Users;
using Camc.Duct.Chat;
using Camc.Duct.Editions;
using Camc.Duct.Friendships;
using Camc.Duct.MultiTenancy;
using Camc.Duct.MultiTenancy.Accounting;
using Camc.Duct.MultiTenancy.Payments;
using Camc.Duct.Storage;
using Abp.EntityFrameworkCore;
using Camc.Duct.ProduceTask;
using Camc.Duct.Customer;
using Camc.Duct.TaskProcess.Process;
using Camc.Duct.TaskProcess.Request;
using Camc.Duct.TaskProcess.Station;
using Camc.Duct.TaskProcess.TaskLine;
using Camc.Duct.AppUserInfos;
using Camc.Duct.TaskProcess.Worker;

namespace Camc.Duct.EntityFrameworkCore
{
    public class SCDDbContext : AbpDbContext
	{
        /* Define an IDbSet for each entity of the application */

        public virtual DbSet<Aaa> Aaas { get; set; }

		public virtual DbSet<Order> Orders { get; set; }

		public virtual DbSet<Process> Processes { get; set; }

		public virtual DbSet<Contact> Contacts { get; set; }

		public virtual DbSet<SpecialTool> SpecialTools { get; set; }

		public virtual DbSet<ProductLog> ProductLogs { get; set; }

        public virtual DbSet<AppUserInfo> AppUserInfos { get; set; }
        //导管管理

        public virtual DbSet<NodeBase> NodeBases { get; set; }
		public virtual DbSet<NodeForInstance> NodeForInstances { get; set; }
		public virtual DbSet<NodeForTemplate> NodeForTemplates { get; set; }
		public virtual DbSet<WorkStation> WorkStations { get; set; }
		public virtual DbSet<LineInstance> LineInstances { get; set; }
		public virtual DbSet<LineInstanceExecuteHistory> LineInstanceExecuteHistorys { get; set; }
		public virtual DbSet<LineTemplate> LineTemplates { get; set; }
		public virtual DbSet<RequestBase> RequestBases { get; set; }
		public virtual DbSet<WorkingTeam> WorkingTeams { get; set; }


		public SCDDbContext(DbContextOptions<SCDDbContext> options)
            : base(options)
        {
            
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
       
        }
    }
}
